<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */
if ($q[1] == "word") {
    include './components/com_search/view/word.php';
} else
    if ($q[1] == "tag") {
        include './components/com_search/view/tag.php';
    } else
        if ((!empty($q[1]) || !empty($_GET['keyword'])) and ($q[1] != "word" and $q[1] !=
            "tag")) {
            $keyword = (empty($_GET['keyword'])) ? $q[1] : $_GET['keyword'];
            include './components/com_search/view/search.php';
        } else
            if (empty($q[1])) {
                Text::p( Lang::getFront('com_search', 'empty_keyword') );
            }

?>